﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint.Administration;

namespace SPWarmup
{
    /// <summary>
    /// Implementation of ITopologyService
    /// Returns web application URLS from the local WFE
    /// </summary>
    public class TopologyService : ITopologyService
    {
        /// <summary>
        /// Gets the URLS of all SP content applications of the local farm
        /// So far this returns the default URL from the AAM
        /// </summary>
        /// <returns>A list if URLs</returns>
        public SPWebApplicationCollection GetContentApplications()
        {
            var service = SPWebService.ContentService;
            return service.WebApplications;
        }

      
    }
}
